#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyPushButton(QWidget *parent = nullptr);
    MyPushButton(QString normalImg, QString pressImg="");
    void zoom1(); // 向下跳
    void zoom2(); // 向上跳

    // 重写按钮的按下和释放
    void mousePressEvent(QMouseEvent * e);
    void mouseReleaseEvent(QMouseEvent * e);

    QString normalImg;
    QString pressImg;

signals:

};

#endif // MYPUSHBUTTON_H
